import Vue from 'vue'
import App from './App.vue'
// 引入router(需要下载router -- npm install vue-router@3 @3->vue2 @4->vue3)
import router from './router'


/*引入element-ui(需要下载element-ui -- npm i element-ui -S)*/
import './plugins/element.js'
import ElementUI from 'element-ui' //element-ui的全部组件
import 'element-ui/lib/theme-chalk/index.css'//element-ui的css
import "./assets/css/global.css"
import './assets/fonts/iconfont.css'
//引入echarts图表(需要下载引入echarts -- npm install echarts --save)
import *as echarts from 'echarts'
Vue.prototype.$echarts = echarts//挂载到Vue实例上，方便全局使用

//滑动验证 -- npm install vue-monoplasty-slide-verify@1.1.3 --save
import SlideVerify from 'vue-monoplasty-slide-verify';
Vue.use(SlideVerify);
//icon图标选择器 -- npm install e-icon-picker --save
import iconPicker from 'e-icon-picker';
import "e-icon-picker/lib/symbol.js"; //基本彩色图标库
import 'e-icon-picker/lib/index.css'; // 基本样式，包含基本图标
import 'font-awesome/css/font-awesome.min.css'; //font-awesome 图标库
import 'element-ui/lib/theme-chalk/icon.css'; //element-ui 图标库
Vue.use(iconPicker, {eIcon: true, ElementUI: true, FontAwesome: true, eIconSymbol: true});

import './assets/js/flexible.js'
import './assets/js/echarts.min.js'
import './assets/js/jquery.js'
import './assets/js/china.js'
import request from './utils/request'; // 导入配置好的 Axios 实例
import store from './store'


Vue.prototype.$http = request
//使用Element-UI组件
Vue.use(ElementUI)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
